package com.example.a2207_zh.database

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.example.a2207_zh.entity.VideoEntity

@Dao
interface VideoDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertVideo(videoEntity: VideoEntity)
    @Delete
    fun deleteVideo(videoEntity: VideoEntity)
    @Query("select * from video")
    fun queryVideo():List<VideoEntity>
}